﻿using System;

namespace zijian666.Abstractions;

/// <summary>
/// 处理与"时间"相关的类型的转换的接口
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IFromTime<T>
    : IFrom<DateTime, T>
    , IFrom<DateTimeOffset, T>
    , IFrom<TimeSpan, T>
#if NET5_0_OR_GREATER

    , IFrom<TimeOnly, T>
    , IFrom<DateOnly, T>
#endif
{
}
